package com.example.testdb1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("student")
// @ApiModel(description = "学生信息表-一般实体类不用这个注释")
public class Student implements Serializable {
    private static final long serialVersionUID = -1242493306307174690L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "sid")
    private Long sid;

    // @TableField
    private String sname;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    // @TableField
    private LocalDateTime sage;

    // @TableField
    private String ssex;

    private String password;
}
